package com.vcc.service.boss.request.regulation;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
@Setter
@Getter
public class AccountRegulationDto implements Serializable {


    private Long userId;

    private Long cardId;

    @NotBlank(message = "类型不能为空")
    private String type;

    @NotBlank(message = "币种不能为空")
    private String currencyCode;

    @NotNull(message = "金额不能为空")
    @Min(value = 0, message = "金额必须大于等于0")
    private BigDecimal amount;

    @NotNull(message = "调账事件不能为空")
    private Integer useFlag;

    @NotBlank(message = "金额类型不能为空  add 加钱 subtract 减钱")
    private String amountType;


    private String orderId;


    private String remark;
}
